/**
 *  Document   : IAuthentication
 *  Created on : 26 juil. 2008, 18:21:04
 *  Author     : Rivo
 */

package gla.centralhotel.business;

import gla.centralhotel.exception.IllegalAuthenticationException;
import gla.centralhotel.model.Agency;
import gla.centralhotel.model.Manager;
import javax.ejb.Local;

@Local
public interface IAuthentication {
    
     /**
     * Authentification de l'utilisateur (Gestionnaire)
     * @param manager
     * @return
     * @throws gla.centralhotel.exception.IllegalAuthenticationException
     */
    public Manager connectManager(String email, String pwd)throws IllegalAuthenticationException;
    
    /**
     * Authentification de l'utilisateur (Agence)
     * @param email
     * @param pwd
     * @return
     * @throws gla.centralhotel.exception.IllegalAuthenticationException
     */
    public Agency connectAgency(String email, String pwd) throws IllegalAuthenticationException;
    
}
